package com.group3.hospital.service.impl;

import com.group3.hospital.bean.Dep;
import com.group3.hospital.bean.Doctor;
import com.group3.hospital.bean.Subject;
import com.group3.hospital.mapper.DoctorMapper;
import com.group3.hospital.service.DoctorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 秀秀
 */
@Service
public class DoctorServiceImpl implements DoctorService {

    @Resource
    private DoctorMapper doctorMapper;


    @Override
    public List<Subject> querySubByDepId1() throws Exception {
        return doctorMapper.querySubByDepId1();
    }

    @Override
    public List<Subject> querySubByDepId2() throws Exception {
        return doctorMapper.querySubByDepId2();
    }

    @Override
    public List<Subject> querySubByDepId3() throws Exception {
        return doctorMapper.querySubByDepId3();
    }

//    @Override
//    public List<Doctor> queryDocBySubId(Integer SubjectId) throws Exception {
//        return doctorMapper.queryDocBySubId(SubjectId);
//    }

    @Override
    public List<Doctor> queryDocByDepAndSub1() throws Exception {
        return doctorMapper.queryDocByDepAndSub1();
    }

    @Override
    public List<Doctor> queryDocByDepAndSub2() throws Exception {
        return doctorMapper.queryDocByDepAndSub2();
    }

    @Override
    public List<Doctor> queryDocByDepAndSub3() throws Exception {
        return doctorMapper.queryDocByDepAndSub3();
    }
}
